package com.baymax.test.scene.demo

import android.graphics.Color
import android.os.Bundle
import android.text.Spanned
import android.text.style.ImageSpan
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.CheckBox
import android.widget.TextView
import com.baymax.test.scene.BaseScene
import com.baymax.test.scene.R
import com.baymax.test.scene.addDFView
import com.baymax.test.scene.newSceneFlexContainer
import com.baymax.test.scene.newScrollContainer
import com.baymax.test.scene.span.buildSpannedString
import com.baymax.test.scene.span.dspan
import com.baymax.test.scene.span.line

class CheckBoxScene : BaseScene() {
    override fun onCreateView(p0: LayoutInflater, p1: ViewGroup, p2: Bundle?): View {
        return p1.newSceneFlexContainer {

            val ctx = this.context
            val cb = CheckBox(ctx)
            cb.isFocusable =true
            cb.isFocusableInTouchMode = false
            addDFView(100 ,100 ,cb)
            cb.setOnClickListener{

            }
        }
    }

}
